
using Security.Authorizations.Properties;

namespace Security.Authorizations
{
    using System;
    using System.Globalization;
    
    internal class SR
    {

        public static string GetString(string name)
        {

            return Resources.ResourceManager.GetString(name, CultureInfo.CurrentCulture);
        }

        public static string GetString(string name, params object[] args)
        {
            string format = Resources.ResourceManager.GetString(name, CultureInfo.CurrentCulture);
            if ((args == null) || (args.Length <= 0))
            {
                return format;
            }
            for (int i = 0; i < args.Length; i++)
            {
                string str2 = args[i] as string;
                if ((str2 != null) && (str2.Length > 0x400))
                {
                    args[i] = str2.Substring(0, 0x3fd) + "...";
                }
            }
            return string.Format(CultureInfo.CurrentCulture, format, args);
        }
                
    }

}
